﻿using System;
using System.ComponentModel;

namespace ExFlash.Records
{
    [TypeConverter(typeof(ShapeRecordConverter))]
    public abstract class ShapeRecord : ISwfSerializable
    {
        public Boolean TypeFlag
        {
            get;
            protected set;
        }

        protected ShapeRecord(Boolean type)
        {
            TypeFlag = type;
        }
        
        #region ISwfSerializable Members

        public abstract void SwfDeserialize(BinaryBitReader reader);

        public abstract void SwfSerialize(byte[] arr, ref int offset);

        #endregion
    }

    public class ShapeRecordConverter : ExpandableObjectConverter
    {

    }
}
